package org.dromara.app.domain.bo;

import org.dromara.app.domain.SkYueJuType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 约局类型业务对象 sk_yue_ju_type
 *
 * @author Evacuation
 * @date 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkYueJuType.class, reverseConvertGenerate = false)
public class SkYueJuTypeBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 上级ID
     */
    @NotNull(message = "上级ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    private int scort;

    private String icon;

}
